package org.wenhuayuan.project.main.http.api

import org.wenhuayuan.library.resful.HiCall
import org.wenhuayuan.library.resful.annotation.Filed
import org.wenhuayuan.library.resful.annotation.GET
import org.wenhuayuan.library.resful.annotation.Path
import org.wenhuayuan.project.main.model.HomeModel
import org.wenhuayuan.project.main.model.TabCategory

interface HomeApi {

    @GET("category/categories")
    fun queryTabList():HiCall<List<TabCategory>>

    @GET("home/{categoryId}")
    fun queryTabCategoryList(
        @Path("categoryId")categoryId:String,
        @Filed("pageIndex")pageIndex:Int,
        @Filed("pageSize")pageSize:Int
    ):HiCall<HomeModel>

}